{% extends 'pybb/base.html' %}
{% load pybb_tags i18n %}

{% block pybb_head_extra %}
  <script type="text/javascript" src="{{ PYBB_MEDIA_URL }}js/pybbjs.js"></script>
{% endblock %}

{% block pybb_crumbs %}
<a href="/">AuAdult</a> <img src="/res/forum_v2/crumb.png" class="crumb-arrow" />
<a href="{% url pybb_index %}">Forum</a> <img src="/res/forum_v2/crumb.png" class="crumb-arrow" />
{% if forum %}
    <a href="{{ forum.category.get_absolute_url }}">{{ forum.category }}</a> <img src="/res/forum_v2/crumb.png" class="crumb-arrow" />
    <a href="{{ forum.get_absolute_url }}">{{ forum }}</a>
{% else %}
    <a href="{{ topic.forum.category.get_absolute_url }}">{{ topic.forum.category }}</a> <img src="/res/forum_v2/crumb.png" class="crumb-arrow" />
    <a href="{{ topic.forum.get_absolute_url }}">{{ topic.forum }}</a> <img src="/res/forum_v2/crumb.png" class="crumb-arrow" />
    <a href="{{ topic.get_absolute_url }}">{{ topic }}</a>
{% endif %}
{% endblock %}

{% block pybb_content %}
<div class="separator"></div>
<div class="post-form-page">
    {% if user.pybb_profile.is_banned %}
        {% trans 'You banned' %}
    {% else %}
        {% include "pybb/post_form.html" %}
    {% endif %}
</div>
{% endblock %}
